spl: mmc: get rid of emmc boot code duplication
authorNikita Kiryanov <[email protected]>
Sun, 8 Nov 2015 15:11:48 +0000 (17:11 +0200)
committerTom Rini <[email protected]>
Wed, 18 Nov 2015 19:50:02 +0000 (14:50 -0500)
commit83cdf6faa677ff8ff39d7852126aad3207fac021
tree05496748051e481b728fd3278c7d6bd95652b95a
parentf52b729393c4ec2af22f3a51a193362fc4f55e4f
spl: mmc: get rid of emmc boot code duplication

Get rid of emmc boot code duplication in spl_mmc_load_image() using a switch
case fallthrough into MMCSD_MODE_RAW. Since the #ifdef CONFIG_SUPPORT_EMMC_BOOT
check is not really necessary, remove it in the process.

No functional changes.

Signed-off-by: Nikita Kiryanov <[email protected]>
Cc: Igor Grinberg <[email protected]>
Cc: Paul Kocialkowski <[email protected]>
Cc: Pantelis Antoniou <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Simon Glass <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
common/spl/spl_mmc.c